package org.pzy.java.io;

import java.io.BufferedInputStream;
import java.io.FileInputStream;

/**
 * @author pzy
 */
public class IODemo {
    public static void main(String[] args) {
        try (BufferedInputStream bi = new BufferedInputStream(new FileInputStream("D:\\gitee\\framework-base\\http-client.env.json"))) {
            byte[] bytes = new byte[4 * 1024];
            int content;
            while ((content = bi.read(bytes)) != -1) {
                System.out.println(content);
                System.out.println((char) content);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
